package com.cxf.windex.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Table(name = "b_money_log")
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@NoArgsConstructor
@Getter
@Setter
public class MoneyLog {
    /**
     * 资金记录ID
     */
    @Id
    private String id;

    /**
     * 微信openid
     */
    private String wxopenid;

    /**
     * 名称
     */
    private String name;

    /**
     * 类型
     */
    private String type;

    /**
     * 类型名称
     */
    @Column(name = "type_name")
    private String typeName;

    /**
     * 状态 0未处理 1已经处理 2退回 
     */
    private String status;

    /**
     * 金额
     */
    private BigDecimal money;

    /**
     * 备注
     */
    private String notes;

    /**
     * 关联ID
     */
    @Column(name = "bind_id")
    private String bindId;

    /**
     * 创建时间
     */
    @Column(name = "crt_time")
    private Date crtTime;

    /**
     * 创建用户IP
     */
    @Column(name = "crt_host")
    private String crtHost;


}